package the.broccoli.generator.engine.po;

import org.wisteria.framework.util.DateUtils;

import java.util.Date;
import java.util.List;

public class WistData {

    /**
     * 数据库连接地址
     */
    private String url;
    /**
     * 数据库账号
     */
    private String userName = "root";
    /**
     * 数据密码
     */
    private String password = "root";
    /**
     * 数据库驱动类
     */
    private String driverName = "com.mysql.jdbc.Driver";

    /**
     * 后端项目路径
     */
    private String projectPath;
    /**
     * 模块包名前缀
     */
    private String packagePrefix;
    /**
     * Web端项目路径
     */
    private String webProjectPath;
    /**
     * Web端类包名前缀
     */
    private String webPackagePrefix;

    /**
     * 表名
     */
    private String tableName;
    /**
     * 表名的分隔符
     */
    private String tableNameRegex;
    /**
     * 模块名
     */
    private String moduleName;
    /**
     * 实体类名
     */
    private String entityClass;
    /**
     * 实体名
     */
    private String entityName;
    /**
     * 实体描述
     */
    private String entityDescr;

    /**
     * 作者
     */
    private String author;
    /**
     * 时间
     */
    private String date = DateUtils.formatTime(new Date());

    /**
     * 新增功能的字段
     */
    private List<WistField> addFields;
    /**
     * 修改功能的字段
     */
    private List<WistField> modifyFields;
    /**
     * 详情功能的字段
     */
    private List<WistField> detailFields;
    /**
     * 查询功能的查询字段
     */
    private List<WistField> conditionFields;
    /**
     * 查询列表功能的字段
     */
    private List<WistField> listFields;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getProjectPath() {
        return projectPath;
    }

    public void setProjectPath(String projectPath) {
        this.projectPath = projectPath;
    }

    public String getPackagePrefix() {
        return packagePrefix;
    }

    public void setPackagePrefix(String packagePrefix) {
        this.packagePrefix = packagePrefix;
    }

    public String getWebProjectPath() {
        return webProjectPath;
    }

    public void setWebProjectPath(String webProjectPath) {
        this.webProjectPath = webProjectPath;
    }

    public String getWebPackagePrefix() {
        return webPackagePrefix;
    }

    public void setWebPackagePrefix(String webPackagePrefix) {
        this.webPackagePrefix = webPackagePrefix;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTableNameRegex() {
        return tableNameRegex;
    }

    public void setTableNameRegex(String tableNameRegex) {
        this.tableNameRegex = tableNameRegex;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getEntityClass() {
        return entityClass;
    }

    public void setEntityClass(String entityClass) {
        this.entityClass = entityClass;
    }

    public String getEntityName() {
        return entityName;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public String getEntityDescr() {
        return entityDescr;
    }

    public void setEntityDescr(String entityDescr) {
        this.entityDescr = entityDescr;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public List<WistField> getAddFields() {
        return addFields;
    }

    public void setAddFields(List<WistField> addFields) {
        this.addFields = addFields;
    }

    public List<WistField> getModifyFields() {
        return modifyFields;
    }

    public void setModifyFields(List<WistField> modifyFields) {
        this.modifyFields = modifyFields;
    }

    public List<WistField> getDetailFields() {
        return detailFields;
    }

    public void setDetailFields(List<WistField> detailFields) {
        this.detailFields = detailFields;
    }

    public List<WistField> getConditionFields() {
        return conditionFields;
    }

    public void setConditionFields(List<WistField> conditionFields) {
        this.conditionFields = conditionFields;
    }

    public List<WistField> getListFields() {
        return listFields;
    }

    public void setListFields(List<WistField> listFields) {
        this.listFields = listFields;
    }
}
